package entity

type GatewayBroadcastModel struct {
	GatewayOutModel
	SendType        int //1全部  2组播  3排除部分
	ReceiverInclude []string
	ReceiverExclude []string
}

type GatewayInModel struct {
	Data    []byte
	Cmd     uint16
	Ip      string
	User    UserModel
	UserUni string
}

type GatewayOutModel struct {
	Data []byte
	Cmd  uint16
}

const (
	ClientEventConnect     = 1
	ClientEventLogin       = 2
	ClientEventLostConnect = 3
)

type GatewayClientEvent struct {
	Data      any
	UserUni   string
	EventType int
}
